# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

# This PKGBUILD was originally extracted from AUR.
# AUR Maintainer: Caleb Maclennan <caleb@alerque.com>

pkgname=python-exif
_pkgname=${pkgname#python-}
pkgver=1.6.1
pkgrel=1
pkgdesc='Read and modify image EXIF metadata'
arch=('any')
url="https://gitlab.com/TNThieding/exif"
license=('MIT')
depends=('python' 'python-plum-py')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('12460756ef1aba43ac07dee634cc10bedb6fedbec9093000b103b278b033110ba5d479ff87daa17665f506b62f696a00ef53a99ae94876d9bfb9f45cb33df9b9')

build() {
	cd "$_pkgname-$pkgver"

	python setup.py build
}

package() {
	cd "$_pkgname-$pkgver"

	python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

